#ifndef MYPROTOCOL_H
#define MYPROTOCOL_H

enum sendprotocol{
    hrlogin_protocol = 10,
    add_protocol,
    query_request_protocol,
    modify_request_protocol,
    delete_request_protocol,
    select_all_request_protocol,
    managerlogin_protocol,
    register_request_protocol,
    delete_usr_request_protocl, //单词写错
    manageradd_request_protocol,
    managerquery_request_protocol,
    select_allusr_request_protocol,
};
enum recvprotocol{
    hrlogin_verify_protocol = 55,
    add_verify_protocol,
    search_verify_protocol,
    modify_verify_protocol,
    delete_verify_protocol,
    select_all_verify_protocol,
    managerlogin_verify_protocol,
    register_verify_protocol,
    delete_usr_verify_protocl,
    manageradd_verify_protocol,
    managerquery_verify_protocol,
    select_allusr_verify_protocol,
};

typedef struct _trans_usrinfo
{
//    int protocolnum;
    char name[32];
    char usrname[32];
    char password[32];
} trans_usrinfo_t;

typedef struct _trans_dbinfo
{
//    int protocolnum;
    char name[32];
    int old;
    char department[32];
    int salary;
} trans_dbinfo_t;

typedef struct _staff_info
{
    char name[32];
    int old;
    char department[32];
    int salary;
} staff_info_t;

typedef struct _search_info
{
    char name[32];
    staff_info_t staff_info;
    int if_true;
} search_info_t;

#endif // MYPROTOCOL_H
